package com.novacloud.mq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author <a href="mailto:huzhanjun@novacloud.com">huzj</a>
 * @version 1.0
 * @date 2017/9/28 9:50
 */
@Component
public class MqListener {
//    @RabbitListener(queues = "hello")
//    @RabbitHandler
//    public void helloProcess(String message) {
//        System.out.println("收到的Hello消息为：" + message);
//    }
//
//    @RabbitListener(queues = "test")
//    @RabbitHandler
//    public void testProcess(String message) {
//        System.out.println("收到的Test消息是：" + message);
//    }
}
